package com.eliza.kotlin.design.creation.factory.abstract_5

/**
 * @version v1.0
 * @ClassName: Dessert
 * @Description: 甜品抽象类
 * @Author: 黑马程序员
 */
abstract class Dessert {
    abstract fun show()
}

internal class MatchaMousse : Dessert() {
    override fun show() {
        println("抹茶慕斯")
    }
}

internal class Trimisu : Dessert() {
    override fun show() {
        println("提拉米苏")
    }
}